package game
{
	import flash.display.BitmapData;
	import flash.geom.Rectangle;
	
	import mx.core.SoundAsset;
	import mx.effects.SoundEffect;

	public final class Asset
	{
		//熊
		[Embed(source="../../res/front_move.png")]
		public static var Player_Front:Class;
		[Embed(source="../../res/back_move.png")]
		public static var Player_Back:Class;
		[Embed(source="../../res/left_move.png")]
		public static var Player_Left:Class;
		[Embed(source="../../res/right_move.png")]
		public static var Player_Right:Class;
		//狗
		[Embed(source="../../res/dog_front_move.png")]
		public static var Dog_Front:Class;
		[Embed(source="../../res/dog_back_move.png")]
		public static var Dog_Back:Class;
		[Embed(source="../../res/dog_left_move.png")]
		public static var Dog_Left:Class;
		[Embed(source="../../res/dog_right_move.png")]
		public static var Dog_Right:Class;

		[Embed(source="../../res/map_2.png")]
		public static var Map_2:Class; //深色地皮，有边栏
		[Embed(source="../../res/map_shu.png")]
		public static var Map_Tree:Class; //树
		[Embed(source="../../res/map_yi.png")]
		public static var Map_Chair:Class; //椅子
		[Embed(source="../../res/hua_bai.png")]
		public static var Map_Flower_W:Class; //白色花		
		[Embed(source="../../res/hua_hong.png")]
		public static var Map_Flower_R:Class; //红色花
		[Embed(source="../../res/hua_huang.png")]
		public static var Map_Flower_Y:Class; //黄色花
		[Embed(source="../../res/hua_lan.png")]
		public static var Map_Flower_B:Class; //蓝色花

		[Embed(source="../../res/da_1.png")]
		public static var Fruit_1:Class; //水果1
		[Embed(source="../../res/da_2.png")]
		public static var Fruit_2:Class; //水果2
		[Embed(source="../../res/da_3.png")]
		public static var Fruit_3:Class; //水果3
		[Embed(source="../../res/da_4.png")]
		public static var Fruit_4:Class; //水果4
		[Embed(source="../../res/da_5.png")]
		public static var Fruit_5:Class; //水果5
		[Embed(source="../../res/da_6.png")]
		public static var Fruit_6:Class; //水果6
		[Embed(source="../../res/da_7.png")]
		public static var Fruit_7:Class; //水果7
		[Embed(source="../../res/da_8.png")]
		public static var Fruit_8:Class; //水果8
		[Embed(source="../../res/da_9.png")]
		public static var Fruit_9:Class; //水果9
		[Embed(source="../../res/da_10.png")]
		public static var Fruit_10:Class; //水果10

		[Embed(source="../../res/da_11.png")]
		public static var Tool_Shoes:Class; //鞋
		[Embed(source="../../res/da_12.png")]
		public static var Tool_Box:Class; //药箱
		[Embed(source="../../res/gu.png")]
		public static var Tool_Bone:Class; //骨头

		[Embed(source="../../res/bgm2.mp3")] //背景音乐
		public static var MP3_Bg:Class;
		[Embed(source="../../res/fail.mp3")] //游戏失败
		public static var MP3_Fail:Class;
		[Embed(source="../../res/pass.mp3")] //游戏通关
		public static var MP3_Pass:Class;
		[Embed(source="../../res/gettool.mp3")] //获取道具
		public static var MP3_GetTool:Class;
		[Embed(source="../../res/hitenemy.mp3")] //撞到敌人
		public static var MP3_HitEnemy:Class;
		[Embed(source="../../res/usetool.mp3")] //使用道具
		public static var MP3_UseTool:Class;
		
		[Embed(source="../../res/xing.png")]
		public static var Eff_GetTool:Class; //使用道具
		[Embed(source="../../res/xiaoguo_a1.png")]
		public static var Eff_HitEnemy:Class; //撞到敌人
		[Embed(source="../../res/xiaoguo2.png")]
		public static var Eff_UseTool:Class; //获取道具

		//熊
		public static var Img_Player_Front:ImageResource;
		public static var Img_Player_Back:ImageResource;
		public static var Img_Player_Left:ImageResource;
		public static var Img_Player_Right:ImageResource;
		//狗
		public static var Img_Dog_Front:ImageResource;
		public static var Img_Dog_Back:ImageResource;
		public static var Img_Dog_Left:ImageResource;
		public static var Img_Dog_Right:ImageResource;

		public static var Img_Map_1:ImageResource; //#ffffff，浅色地皮
		public static var Img_Map_2:ImageResource; //#9bcc01，深色地皮
		public static var Img_Map_3:ImageResource; //深色地皮，有边栏
		public static var Img_Map_4:ImageResource; //树
		public static var Img_Map_5:ImageResource; //椅子
		public static var Img_Flower_W:ImageResource; //白色花		
		public static var Img_Flower_R:ImageResource; //红色花		
		public static var Img_Flower_Y:ImageResource; //黄色花		
		public static var Img_Flower_B:ImageResource; //蓝色花		

		public static var Img_Fruit_1:ImageResource; //水果1
		public static var Img_Fruit_2:ImageResource; //水果2
		public static var Img_Fruit_3:ImageResource; //水果3
		public static var Img_Fruit_4:ImageResource; //水果4
		public static var Img_Fruit_5:ImageResource; //水果5
		public static var Img_Fruit_6:ImageResource; //水果6
		public static var Img_Fruit_7:ImageResource; //水果7
		public static var Img_Fruit_8:ImageResource; //水果8
		public static var Img_Fruit_9:ImageResource; //水果9
		public static var Img_Fruit_10:ImageResource; //水果10

		public static var Img_Tool_Shoes:ImageResource; //水果8
		public static var Img_Tool_Box:ImageResource; //水果9
		public static var Img_Tool_Bone:ImageResource; //水果10	

		public static var Sound_Bg:SoundAsset; //背景音乐
		public static var Sound_Fail:SoundAsset; //游戏失败
		public static var Sound_Pass:SoundAsset; //游戏通关
		public static var Sound_GetTool:SoundAsset; //获取道具
		public static var Sound_HitEnemy:SoundAsset; //撞到敌人
		public static var Sound_UseTool:SoundAsset; //使用道具
		
		public static var Img_GetTool:ImageResource; //获取道具
		public static var Img_HitEnemy:ImageResource; //撞到敌人
		public static var Img_UseTool:ImageResource; //使用道具
		public static function Init():void
		{
			Img_Player_Front = new ImageResource(new Player_Front(), new Rectangle(15, 70, 40, 10));
			Img_Player_Back = new ImageResource(new Player_Back(), new Rectangle(15, 70, 40, 10));
			Img_Player_Left = new ImageResource(new Player_Left(), new Rectangle(15, 70, 40, 10));
			Img_Player_Right = new ImageResource(new Player_Right(), new Rectangle(15, 70, 40, 10));

			Img_Dog_Front = new ImageResource(new Dog_Front(), new Rectangle(20, 35, 42, 20));
			Img_Dog_Back = new ImageResource(new Dog_Back(), new Rectangle(20, 35, 42, 20));
			Img_Dog_Left = new ImageResource(new Dog_Left(), new Rectangle(20, 35, 42, 20));
			Img_Dog_Right = new ImageResource(new Dog_Right(), new Rectangle(20, 35, 42, 20));

			Img_Map_1 = new ImageResource(null, new Rectangle());
			Img_Map_1.Source = new BitmapData(50, 50, false);
			Img_Map_1.Source.fillRect(Img_Map_1.Source.rect, 0xF2F9ED);

			Img_Map_2 = new ImageResource(null, new Rectangle(0, 0, 50, 50));
			Img_Map_2.Source = new BitmapData(50, 50, false);
			Img_Map_2.Source.fillRect(Img_Map_2.Source.rect, 0x9bcc01);

			Img_Map_3 = new ImageResource(new Map_2(), new Rectangle(0, 0, 50, 50));
			Img_Map_4 = new ImageResource(new Map_Tree(), new Rectangle(35, 90, 30, 15));
			Img_Map_5 = new ImageResource(new Map_Chair(), new Rectangle());

			Img_Flower_W = new ImageResource(new Map_Flower_W(), new Rectangle());
			Img_Flower_R = new ImageResource(new Map_Flower_R(), new Rectangle());
			Img_Flower_Y = new ImageResource(new Map_Flower_Y(), new Rectangle());
			Img_Flower_B = new ImageResource(new Map_Flower_B(), new Rectangle());

			Img_Fruit_1 = new ImageResource(new Fruit_1(), new Rectangle());
			Img_Fruit_2 = new ImageResource(new Fruit_2(), new Rectangle());
			Img_Fruit_3 = new ImageResource(new Fruit_3(), new Rectangle());
			Img_Fruit_4 = new ImageResource(new Fruit_4(), new Rectangle());
			Img_Fruit_5 = new ImageResource(new Fruit_5(), new Rectangle());
			Img_Fruit_6 = new ImageResource(new Fruit_6(), new Rectangle());
			Img_Fruit_7 = new ImageResource(new Fruit_7(), new Rectangle());
			Img_Fruit_8 = new ImageResource(new Fruit_8(), new Rectangle());
			Img_Fruit_9 = new ImageResource(new Fruit_9(), new Rectangle());
			Img_Fruit_10 = new ImageResource(new Fruit_10(), new Rectangle());

			Img_Tool_Shoes = new ImageResource(new Tool_Shoes(), new Rectangle());
			Img_Tool_Box = new ImageResource(new Tool_Box(), new Rectangle());
			Img_Tool_Bone = new ImageResource(new Tool_Bone(), new Rectangle());

			Sound_Bg = new MP3_Bg() as SoundAsset;
			Sound_Fail = new MP3_Fail() as SoundAsset;
			Sound_Pass = new MP3_Pass() as SoundAsset;
			Sound_GetTool = new MP3_GetTool() as SoundAsset;
			Sound_HitEnemy = new MP3_HitEnemy() as SoundAsset;
			Sound_UseTool = new MP3_UseTool() as SoundAsset;
 			
 			Img_GetTool = new ImageResource(new Eff_GetTool(), new Rectangle());
			Img_HitEnemy = new ImageResource(new Eff_HitEnemy(), new Rectangle());
			Img_UseTool = new ImageResource(new Eff_UseTool(), new Rectangle());
		}

	}
}